.class Lcom/xingbook/ui/b/m;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/xingbook/ui/b/j;


# direct methods
.method public constructor <init>(Lcom/xingbook/ui/b/j;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9

    const/4 v8, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    iget-object v0, v0, Lcom/xingbook/ui/b/j;->f:Lcom/xingbook/c/a;

    invoke-virtual {v0, v2}, Lcom/xingbook/c/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v0}, Lcom/xingbook/ui/b/j;->a(Lcom/xingbook/ui/b/j;)[Landroid/widget/TextView;

    move-result-object v3

    array-length v4, v3

    move v1, v2

    :goto_0
    if-lt v1, v4, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v0}, Lcom/xingbook/ui/b/j;->c(Lcom/xingbook/ui/b/j;)Landroid/widget/LinearLayout;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v1}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v1

    iget v1, v1, Lcn/a/a/d/a;->a:I

    iget-object v2, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v2}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v2

    iget v2, v2, Lcn/a/a/d/a;->b:I

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->measure(II)V

    iget-object v0, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v0}, Lcom/xingbook/ui/b/j;->c(Lcom/xingbook/ui/b/j;)Landroid/widget/LinearLayout;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v1}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v1

    iget v1, v1, Lcn/a/a/d/a;->c:I

    iget-object v2, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v2}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v2

    iget v2, v2, Lcn/a/a/d/a;->d:I

    iget-object v3, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v3}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v3

    iget v3, v3, Lcn/a/a/d/a;->c:I

    iget-object v4, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v4}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v4

    iget v4, v4, Lcn/a/a/d/a;->a:I

    add-int/2addr v3, v4

    iget-object v4, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v4}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v4

    iget v4, v4, Lcn/a/a/d/a;->d:I

    iget-object v5, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v5}, Lcom/xingbook/ui/b/j;->d(Lcom/xingbook/ui/b/j;)Lcn/a/a/d/a;

    move-result-object v5

    iget v5, v5, Lcn/a/a/d/a;->b:I

    add-int/2addr v4, v5

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout;->layout(IIII)V

    return-void

    :cond_0
    aget-object v0, v3, v1

    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v6

    if-ne v5, v6, :cond_1

    invoke-virtual {p1, v8}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iget-object v5, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    iget-object v6, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v6}, Lcom/xingbook/ui/b/j;->b(Lcom/xingbook/ui/b/j;)[[I

    move-result-object v6

    aget-object v6, v6, v0

    aget v6, v6, v2

    iget-object v7, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-static {v7}, Lcom/xingbook/ui/b/j;->b(Lcom/xingbook/ui/b/j;)[[I

    move-result-object v7

    aget-object v0, v7, v0

    aget v0, v0, v8

    invoke-virtual {v5, v6, v0}, Lcom/xingbook/ui/b/j;->d(II)V

    iget-object v0, p0, Lcom/xingbook/ui/b/m;->a:Lcom/xingbook/ui/b/j;

    invoke-virtual {v0}, Lcom/xingbook/ui/b/j;->a()V

    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_0

    :cond_1
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setSelected(Z)V

    goto :goto_1
.end method
